package com.weaver.drools.common.entity;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;
import java.util.Set;


/**
 * The persistent class for the Q_SELF_ENEMPLOYCONTACT_72 database table.
 * 
 */
@Entity
@Table(name="Q_SELF_ENEMPLOYCONTACT_72")
public class QSelfEnemploycontact72 implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="Q_SELF_ENEMPLOYCONTACT_72_CONTACTID_GENERATOR",sequenceName="SE_Q_SELF_ENEMPLOYCONTACT_72",allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="Q_SELF_ENEMPLOYCONTACT_72_CONTACTID_GENERATOR")
	private Long contactid;

	@Temporal(TemporalType.DATE)
	private Date contractstartdate;

	@Temporal(TemporalType.DATE)
	private Date contractstopdate;

	private Long datastatusid;

	private Long datatypeid;

	private Long departmentid;

	private Long isdeleted;

	private Long isprincipal;

	private Long isvalid;

	@Column(name="RESERVED_1")
	private String reserved1;

	@Column(name="RESERVED_2")
	private String reserved2;

	@Column(name="RESERVED_3")
	private String reserved3;

	private Long superviseviewtypeid;

	private Long userid;

	//bi-directional many-to-one association to EAqInsSupervisor129
	@OneToMany(mappedBy="QSelfEnemploycontact72")
	private Set<EAqInsSupervisor129> EAqInsSupervisor129s;
	
	@ManyToOne
	@JoinColumn(name="EMPLOYEEID")
	private QSelfEmployee69 QSelfEmployee69;

	public QSelfEnemploycontact72() {
	}

	public Long getContactid() {
		return this.contactid;
	}

	public void setContactid(Long contactid) {
		this.contactid = contactid;
	}

	public Date getContractstartdate() {
		return this.contractstartdate;
	}

	public void setContractstartdate(Date contractstartdate) {
		this.contractstartdate = contractstartdate;
	}

	public Date getContractstopdate() {
		return this.contractstopdate;
	}

	public void setContractstopdate(Date contractstopdate) {
		this.contractstopdate = contractstopdate;
	}

	public Long getDatastatusid() {
		return this.datastatusid;
	}

	public void setDatastatusid(Long datastatusid) {
		this.datastatusid = datastatusid;
	}

	public Long getDatatypeid() {
		return this.datatypeid;
	}

	public void setDatatypeid(Long datatypeid) {
		this.datatypeid = datatypeid;
	}

	public Long getDepartmentid() {
		return this.departmentid;
	}

	public void setDepartmentid(Long departmentid) {
		this.departmentid = departmentid;
	}

	public Long getIsdeleted() {
		return this.isdeleted;
	}

	public void setIsdeleted(Long isdeleted) {
		this.isdeleted = isdeleted;
	}

	public Long getIsprincipal() {
		return this.isprincipal;
	}

	public void setIsprincipal(Long isprincipal) {
		this.isprincipal = isprincipal;
	}

	public Long getIsvalid() {
		return this.isvalid;
	}

	public void setIsvalid(Long isvalid) {
		this.isvalid = isvalid;
	}

	public String getReserved1() {
		return this.reserved1;
	}

	public void setReserved1(String reserved1) {
		this.reserved1 = reserved1;
	}

	public String getReserved2() {
		return this.reserved2;
	}

	public void setReserved2(String reserved2) {
		this.reserved2 = reserved2;
	}

	public String getReserved3() {
		return this.reserved3;
	}

	public void setReserved3(String reserved3) {
		this.reserved3 = reserved3;
	}

	public Long getSuperviseviewtypeid() {
		return this.superviseviewtypeid;
	}

	public void setSuperviseviewtypeid(Long superviseviewtypeid) {
		this.superviseviewtypeid = superviseviewtypeid;
	}

	public Long getUserid() {
		return this.userid;
	}

	public void setUserid(Long userid) {
		this.userid = userid;
	}

	public Set<EAqInsSupervisor129> getEAqInsSupervisor129s() {
		return this.EAqInsSupervisor129s;
	}

	public void setEAqInsSupervisor129s(Set<EAqInsSupervisor129> EAqInsSupervisor129s) {
		this.EAqInsSupervisor129s = EAqInsSupervisor129s;
	}

	public EAqInsSupervisor129 addEAqInsSupervisor129(EAqInsSupervisor129 EAqInsSupervisor129) {
		getEAqInsSupervisor129s().add(EAqInsSupervisor129);
		EAqInsSupervisor129.setQSelfEnemploycontact72(this);

		return EAqInsSupervisor129;
	}

	public EAqInsSupervisor129 removeEAqInsSupervisor129(EAqInsSupervisor129 EAqInsSupervisor129) {
		getEAqInsSupervisor129s().remove(EAqInsSupervisor129);
		EAqInsSupervisor129.setQSelfEnemploycontact72(null);

		return EAqInsSupervisor129;
	}

	public QSelfEmployee69 getQSelfEmployee69() {
		return QSelfEmployee69;
	}

	public void setQSelfEmployee69(QSelfEmployee69 qSelfEmployee69) {
		QSelfEmployee69 = qSelfEmployee69;
	}

}